#ifndef		__MSG_BUILDER__IF__
#define		__MSG_BUILDER__IF__

#include "MsgIf.h"
//
//	Message Builder Interface
//
class TCOM_API  IMsgBuilder
{
public:
	virtual ~IMsgBuilder(){;}

	//
	//	serialize a message into a stream
	//
	virtual bool onEncodeMsg(IMsg*	pMsg, MsgOStream& stream)	=	0;

	//	
	//	de-serialize a message from stream
	//
	virtual bool onDecodeMsg(IMsg*&	pMsg, MsgIStream& stream)	=	0;

};

#endif

